package com.heima.model.wemedia.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("wm_news_material")
public class WmNewsMaterial implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 素材id
     */
    @TableField("material_id")
    private Integer materialId;
    /**
     * 图文id
     */
    @TableField("news_id")
    private Integer newsId;
    /**
     * 素材类型
     * 0  图片
     * 1  视频
     */
    @TableField("type")
    private Short type;

    @TableField("ord")
    private Short ord;
}
